Handle shell thread with bad user input