Improved session creation/teardown in zmux