I've had situations where database connections appeared to persist following php execution. So, now, my __destructor function explicitly contains a $cxn->close(). It hurts nothing, and helps avoid memory leaks.
mysqli::close -- mysqli_close — Closes a previously opened database connection
Oriented object style
Closes a previously opened database connection.
Returns TRUE on success or FALSE on failure.