fixing error related to stopping global instances without environment variable credentials