Wayne Rooney is leaving DC United after their hopes of making the Major League Soccer play-offs ended.