Slightly better error handling when opening files or accessing targets that do not exist.