Fix exceptions with incorrect args and files that do not exist