Celery database session closing.