Fix deadlock in Conn.Close