comment
- kill NC_PID in unlikely case it is still running
- made configurable, kill_after, timeout_after, temp_directory
- moved mktemp and mkfifo outside of loop for better performance
- sanity tests
- refactoring