exiting build on if connectedCheck fails