Get cursor/connection on demand, and store them for later use.
Make sure a connection works before exiting the connection wizard.