Properly handle file not found error