onStopLocust hook added