petea - added close function in vatican.js