Add error handling when chess engine process failed