Update definition of boolean returns for Server's triggerHooks and disconnect methods