Forced the client to exit when a connection is terminated