Added http_deinit function