implement to stop hub.