Changed exit sequence to send status to server befor client stops.