only send stack trace if one exists