A robotic surgical system includes an electrosurgical energy source, an instrument drive unit, a sterile interface module coupled to the instrument drive unit, and a robotic surgical instrument selectively couplable to the sterile interface module. The robotic surgical instrument may be disposed in electrical communication with the electrosurgical energy source while the robotic surgical instrument is coupled to the sterile interface module. The robotic surgical instrument is configured to automatically electrically disconnect from the electrosurgical energy source when the robotic surgical instrument is uncoupled from the sterile interface module.