Minor bug fixes

Properly disconnecting clients on server close.