put stop in public to use it in junit tests