Driver closer (shutdownHook) registered individually for every thread

Single shutdonwHook tries to close everything in one thread and sometimes hangs up on Win x 64 machines