Make sure always to close the mpcl socket stream properly.