Updated exec with acceptable return codes for flushcache command