The present disclosure relates to methods of performing a surgical procedure including detecting a coupling of an instrument drive unit to a port assembly during a surgical procedure detecting an insertion of a first surgical instrument into the port assembly when the instrument drive unit is coupled to the port assembly and electromechanically decoupling the instrument drive unit from the port assembly after detecting the insertion of the first surgical instrument.