Add error handling for args parsing