R: track down errors that come primarily from non-interactive R sessions; prints a stack trace and continues on