Error Handling for opening from URL