Adding methods to stop/start endpoints on configure and deploy