Fix issue with losing connect and still deploying.