Add '-e' option.

With '-e' option (and without daemon mode), exit immediately if the
connection fails.