Strict runtime error checking

There are some functions that report in success even if it is failed.
We will be confused by this behavior when the system become abnormal.
I fixed dump.c and load.c for now.