Most listener unittests (i.e. the ListenerManagerFTPIntegrationTest) relay on Thread.waits to be successful. This is very unrelayable. We should add some mechanism to have thread communication so we know when we can shutdown the threads and be successful. We should get rid of these build-in race conditions, even if it is 'just for testing'.