Close a window when pressed ctrl+w in browser containing one tab