Add support to kill instance when required
fixed indentation
Merge pull request #1 from kbidarkar/kill-instance-when-finished

Add support to kill instance when required