trycatched file removal