fixes #2337 Mongoose leaks memory with every connection