Fix completely broken exception handling in -[connect].