handling an exception that is hard to repro