Fixed Server shutdown and restart

Now server will destroy all the Threads and Hazelcast instance before it shutdown, safely.
Thus server restart without exeptions.