Clean up JLine threads when no longer needed
Merge pull request #1592 from richdougherty/jline-thread-leak

Clean up JLine threads when no longer needed