stage6: added code for processing kill command at the manager