Move plan clear into the gen_server.