Corrected the mysqli connection check
$this->server will always evaluate to true as an Mysqli object has been created even if the connection fails
Extended the closing check for a connection
* Use the new connected property to only try and close if we attempted to connect
* Added handling for mysql connections that were attempted but failed, in this case both connected and server will be true
If a fetch is attempted from an update/delete/insert then return false