Fix exceptions with incorrect args and files that do not exist

This fix the Issue #36