Fixed various stupid bugs in services thread routines.
Added SERVICE_Exit routine to kill the services thread.

3 files changed