Detach instance when the instance is already stopped
Merge pull request #97 from mfojtik/detach_when_stopped

Detach instance when the instance is already stopped