solved a race condition in unsubscribe within subscribes after receiving a message and unsubscribing inside message received callback.