added more things to delete on failure