Fixed a bug where the server was not properly shutting down and removed unneeded imports.
Fixed a bug where the server was not properly shutting down and removed unneeded imports.

macie-korte/chameleon,agamdua/chameleon