Fix. fs_XXX functions does not call callback directly and respect error flag
Add some checks in callback functions.