Catch file not found exceptions properly