Nothing. The course will not be marked as fully completed until you finish all of the units. If you leave the course halfway done, your progress until that unit will be saved. You can return to the course at a later date and finish it, even if the due date has passed.