Added last work event. Made ending more consistent.