The MySQL engine throws a notice when closing an already closed connection