Add shutdown hook to ServerChannel