Properly catching and handling parsing execptions