Tweak exception handler code to include timestamp.