Setting shutdown hook as non-daemon thread