Fix stack trace formatting for async workers