Implement hanging detection
Make hanging detection also handle exception cases
Remove tmp file "NUL"
Fix so that rainbow don't skip outputting last character in all output