Allow connection errors to bubble up to applications

Addresses issue 218