Clear the receive queue/buffer after disconnect else old messages will be processed on reconnect
Merge branch 'master' into smuxi-master