catch exception, print clean trace when crashing