Close the chess engine process before disposing of it.