move SessionEndEvent back to client package