Handle The SystemObjectCloseThread class def not found exception with logging issue#227