remove onMasterConnect/onMasterClose