new: Handle fatal errors in remove_filename and _remove_directory