If your lease form says that if one leaves, then all must leave, then that may be an enforceable contract. Read your lease form carefully. If there is no term that specifies termination by one is termination as to all, then you continue to have a contract to provide possession and quiet enjoyment of a habitable premises through the lease term. It should be clear. If you have questions after carefully reading your own lease form, take it to an attorney.