add method to stop a connector