Close response for writing once a route handler has written