The rules are different for every state so it’s a good idea to consult with a real estate attorney. Hopefully, any master lease is written that you will have the right to renew the lease automatically at the end of the first term if you want to. But the lease should also have language that you can end it at the end of the term too. If you end the lease with the owner, that would also end the lease with your sub-tenant. But your sub-tenant could lease directly from the owner when their original lease is up.
Anthony, if you have a recommendation, you are welcome to post it on the forum.