delete app on error