Added a shutdown command that terminate() sends in order to cleanly terminate exec-port.