Added output to console when not silent and wrapped a test connection prior to running code to give proper feedback to the user