clean up and socket testing for subscriptions etc.