Examples: Console:: added support for History callbacks + cleanup to be self contained.