echo.rs: don't use `libc::exit`

This eliminates "unsafe" code and uses less `exit(0)`.
However it will be harder to generalize this to exiting from within a
function.