Fixing Server does not close properly

Server is now closeable and no the thread can be removed.
Merge pull request #16 from BjoernAkAManf/patch-1

Fixing Server does not close properly