Fixed imports in the client Main class.
Renamed the receive method in the Client interface in client to start, and added a shutDown method.
Implemented slightly more graceful shutdown of the client.