Extensive error and exception catcher