Catch session closing in finally block
Also write django stderr to django.log