You should, yes. Depending on the tool you are using, it is more or less important. Perl, for example, will close the MySQL connection for you even if you don't at the end of the script. But maybe another tool won't, and you will have a dangling connection. So yea, close it.