Actually exit after printing version message

Current code silently runs as a daemon in background when -V or --version command-line option is specified. Expected behaviour is for the program to terminate after displaying the version message. 

Signed-off-by: Masood Behabadi <masood@dentcat.com>