WFLY-3652 Make sure the error dispatch is run withing a dispatch task