use sigterm instead of sigkill to kill the server

sys.exit() causes a hang for some reason but
os._exit() does not

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
Fixed syntax mistake.
Another one.
order_id is int.
Merge pull request #393 from sophron/fix-errors-due-to-replace

Fix syntax errors.
Merge pull request #373 from benemorius/sigkill-bad

[RFC] use sigterm instead of sigkill to kill the server
brought back AttributeError when cleaning UPnP mappings during shutdown.