Disconnects the last successfully made connection.
This method disconnects the last successfully made connection or the current one if the call is made within a ConnectedEntry event.