Add multiple I/O attempts on failure instead of immediate abort.
Use kill_with_error on I/O failure. Fix missing ifdef on MPI barrier.
Merge pull request #249 from deuzeman/io_retry

Add multiple I/O attempts on failure instead of immediate abort.