Preserve stack traces for pyres_manager workers

Change logger.error to logger.exception to preserve the stack trace.