Small fixes/Remove dead options
Close std(out|err) instead of redirecting to /dev/null.
Merge pull request #122 from gdrooid/master

Substitute /dev/null redirection with closing stdin/err. Cleanup some obsolete functions.