Hardening/false leaks

### Description
Fixed the new SIGSEGV  - moved the call to mongDisconnect to a higher level.
Fixed the two leaks (197 bytes each) - deleting triggeredSubscriptions filtered by throttling.

Oh yes, this is good stuff.
It surely prevents potential false leaks.
It is true it is not very tested (the false leak disappeared), but this code is necessary.
If this part gives us any problems we need to fix the problem, not remove the code.