fix domain.run error handling.