Correctly handling connections that are outstanding when sim ends, by not counting them