Hardened locking, logging, and etc :)