Log PubSub events and unsubscribe when thread is unmounted