Added early termination option using Ctrl+c