Let JVM decide when to connect

Weblogic fails to retrieve the output stream if the connection is already connected (failing with IllegalStateException - Already connected). The JVM handles connect by itself so letting it choose the appropriate moment.