added close method to close sub windows

necessary to use activeTab.close(win) when using custom code/back
buttons