Close connection when we get a finish message