Added stop related functions.
Added stop processing in msg_based_service_mgr.py.
Fixed bugs.