Changed ReturnObjectImpl to return ErrorMessage correctly