Update README.md
Exit check_memory_leak.js if error occurred
Set no_cloexec to stdio
Set error if could not create pipe
Refactoring