Updated router to listen for EOF to try and close it elegantly.