Since I'm not familiar with the command you're using, one thing to check is to see what values it returns on failure. It may not return a non-zero ("true") value on failure.
emc
Information about American English usage here and here. Floating point issues? Please read thisbefore posting.
Comment on Re: system command aborts without exit code