print out exceptions other than NullPointerException