Fix the issue that Sample doesn't call 'unsubscribe'

Fix #1958