Pregunta de entrevista de ZeMoSo

The two questions asked were: a) How do you close a node.js server? b) What is middleware function?