Merge pull request #2 from piousbox/master

Better exit code.
Merge pull request #3 from piousbox/master

Better exit status code.
Merge pull request #2 from Nexenta/master

printout of the client ip in the beginning.