handle ctrl+c and ctrl+d
don't exit on error
forks