added stop() function in supervisor module, ref #6