Get cd and exit working