Handle correctly return code