Lost connection handling

The client now knows what's happening when the connection is lost, either case kick or server shutting down.