add server crash handler