Detect IO errors in save

If system is disk-full, ``save`` return no error (And, broken file is outputted) in 0.5.2.

This patch will solve that problem.
* Detect i/o error and raise an exception
* Print log about the cause of exception using ``errno``


And I changed log message of ``load`` as same with ``save``.