Emit signal upon disconnect
Use g_message rather than printf
Refcount handling
Make sure we don't emit this signal more than once