Fixed a bug that reliably caused the server to crash on client disconnects

Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>