Try to restore to the previous state if the command fails
A minor fix
Bump version to 0.0.2