The Close event will fire when the connection is terminated.