remove failed files/folder if delete_failed option

closes #24