Fixed issue with slave termination on disconnect