update to not die after reading one connection.