You may be able to legally move out before the lease term ends in the following situations. You Are Starting Active Military Duty You Are a Victim of Domestic Violence or Sexual Assault The Rental Unit Is Unsafe or Violates Maryland Health or Safety Codes Your Landlord Harasses You or Violates Your Privacy Rights.