log stack trace if error