use tls for callback detach indication, avoid potential conflict with last error