added delete functionality
Addind session.close