Gracefully end connection loop.