Checks our connection errors.
Fixed our directory issue by using "__DIR__ ." to direct from current file.