Added a connection check to the startup process.

Signed-off-by: Joe Dallago <jd.dallago@gmail.com>