Function checkEOS(): added return code checking of eos quota