Try-With-Resources Session Handling