created die function, calling that instead of offline for offline events