Nosetests doesn't handle exceptions in threads. We need to handle it because time to time there are some errors in deployment thread