Fix bug for dispose method and unsubscribe.

Set timeout in unsubscribe.