added process.on(exit AND SIGINT) handlers + delete profile