Close statements and result sets.