MySQL & mod_ruby

Is it necessary to explicitly call the close method,
on the handle returned my ruby-mysql’s real_connect?

I would expect it to happen automatically when the handle goes
out of scope.

However, on a shared MySql server I have from time to time
gotten the error

‘real_connect’: too many connections (MysqlError).

when trying to connect. Is this just a coincidence?

Jesper