add xheaders config and fix the bug orphaned tornado worker will never stop