Implement leaving a course.