Added application panic function.