added traceback to recover from exceptions