Return of failure instead of throw exception