add domain.exit() and dispoe()
Merge pull request #9 from Papiel/stabilization

add domain.exit() and dispoe()