Added code to shutdown device if the device is already in booted state while erasing content and settings
Merge remote-tracking branch 'parent/dev' into dev
Removed call to kill iOS Simulator, removed unused retrieval of exit code.
Merge pull request #298 from kumaravel-jayakumar/dev

Added code to shutdown device if the device is already in booted state while erasing content and settings