It does call shutdown -- we initially found this via strace. The actual call is in include/mysql/psi/mysql_socket.h which is invoked through vio_cancel()