Drop connection if mysql library function return
CR_OUT_OF_MEMORY, CR_SERVER_GONE_ERROR or CR_SERVER_LOST