Handles better the return values of few of the methods in case of
failure.