No longer loops forever if connection closes after req