Fix deployment issues and the reload command not exiting.