Fixed bug: connection not close.