Fantastic exception handler by Nikos to close reading thread gracefully on user stop