use builtin mapexit
Merge pull request #214 from mekolat/mapexit

use builtin mapexit