Stop motor when connected