Added activating profileEnd on pause event