Fixing session and adding ^C to the main