Autoremoving the logging handler
The same error and traceback are reported even with OQ_NO_DISTRIBUTE=1