print stack trace on stderr in case of runtime/api exceptions