Morrison ends West Ham contract