log stack trace if able