fix the max_elapsed_runtime_reached error which does not dump any output and hang forever on some MPI implementations