`domain.dispose` is unofficially deprecated, so I'm not sure this behavior is very important.