mrpdclient: mrpdclient_close() send a "BYE" before closing connection

The "BYE" message allows the mrpd daemon to free a client connection.
This commit thus prevent a leak risk by both sending this message and
closing the socket on client side.