Do not swallow exceptions in finally

This leads to situations where we cannot connect, then try to commit the stream and throw an already connected exception, swallowing the original "cannot connect" exception.