Implements Killing An Application at the end of work time