Fixed up session loading logic, changed threads to non daemon