thread safe printing fail