get stack traces from exceptions if supplied