split localapplication main() to main() + execute(); local now terminates manager if received 'shutdown' argument on execute; Added utils.terminateInstance(); local.createManager now receves an ec2 connection instaned of awscredentials