Handle ctrl+c
Handle recursive option