added chrome support for leaving