Add unregister and LWT messages.

Add unregister and LWT messages.