Add call to Thread.join()
Import and configure logger before guv

This is done so we are able to see debug messages from the guv patcher.
Clean up order in __patched__ for code clarity