add warning on exception