prevent traceback and print some debugging