add a crash handler at initialization