Disconnect messages working.

Close tab implemented.