Added mapperport callback for exit.
Cleanly shutdown ApiIpPortWatchdogThread.
Fixed shutdown stuff.  Mapper now exits cleanly.