Contract with troubled German shipyard cancelled