Modify MapRunner and Task Thread for exiting the system