added a simple connection test, reports useful stats on reliability