EC2Instance.set_up_and_run leaves the instance running when shutdown is false even if the setup of the instance fails. That's not very sensible. This branch changes it to only respect the 'shutdown' argument if instance setup and running the function completes normally
EC2Instance. set_up_ and_run leaves the instance running when shutdown is false even if the setup of the instance fails. That's not very sensible. This branch changes it to only respect the 'shutdown' argument if instance setup and running the function completes normally