Free context if initialization of TLS failed
mg_set_request_handler() mod to use pattern (Patch from Toni Wilk)