Exception handling

Handle exceptions in a transparent manner