Added in error message for connection problems.