Added argument assertions to connect();
Added ability to use default connection with useDefault setting
fixed bug with finishOrRetry() method, in case first connection fails