cleanup pre stop/start hooks