Tried a second variant to make sure that Firefox refreshes before sleeping.