Forks to end a process with illegal inputs more elegantly.