mark shutdown method with do_not_call_in_templates

Django inadvertently calls methods passed as WSGI params which causes
the server to be shut down whenever an exception is thrown and
DEBUG=True

My attempt to get this fix into Django has not gained much traction.  There is currently an open ticket: https://code.djangoproject.com/ticket/21048