Hook for node init/down and server down