Closing sessions after program execution;