Added cleanup on cancelling the program