When working on remote devices, another feature you should be aware of is "commit confirmed"
If you add "comfirmed" to the commit, your changes will be applied (or the rollback in your case) and if you do not confirm the change within 10 minutes the original configuration will be automaticaly rolled back and restored.
When working remotely this can prevent you being accidently disconnected from the device by your own configuration changes.