added delete_failed option

#24