close session manually at the moment in order to avoid disconnection from the db