MultiMapImpl need open connection

When MultiMapImpl function is called, there is an exception showing a cloesed state of connection.
After trace the connection object, I think it can be fixed by checking connection state whether
it is closed or opened.