//Mobile ios 7 has an issue with browser shutdown