When ImportSnapshot fails, it goes into the deleted state. However, the code didn't consider this state as a failure. This commit fixes that. Fixes #706