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