Close some unclosed recordset

This pull request ensures that all* the recordset are being closed once
they are not used anymore.

*: all stands for "all that I've found" ;)

Bugreport:
http://www.concrete5.org/developers/bugs/5-6-0-2/warning-unknown-1-result-sets-not-freed.-use-mysql_free_result-t/