1. Not sure about CreateFunction. As i said it is used via Entity Framework, no direct calls.
2. Basically it was some SELECT query
3. Connections are also managed by Entity Framework and not created/disposed directly and I doubt EF has connection related bug as it would be reproduced and reported by much wider public by now.

I'll record some detailed logs and will update you with more info.