CLOUDIFY-2150 - NPE when stop machine called after management server restarted.