Terminating the Connection and Reconnecting