add domain.exit() and dispose()