Comment #25 added additional warning if both dataSource and dataSourceClassName are specified.
Fixed #27 set the isClosed flag earlier in the close() method, it was meant to short-circuit the unregisterStatement() call, but was moved later, which broke that behavior.