MariaDB: call disconnect callback when a db connection is closed unexpectedly

Signed-off-by: swpd <swpdtz@gmail.com>
Merge commit '03f68d966418661098c39446427c5fe994d87cba' into mariadb