Correctly handle graceful connection end

This prevents errors when using RCON e.g. during a map change.

See koraktor/steam-condenser#239