finish subscription handling, connection teardown