don't close connection on 404

It was stalling because we weren't writing empty last content