adding on stop callbacksto client and server