When executing a CLI, the context will now be properly set to CLI; Added the ability to configure a connection pool.