Thywin lib

Exception handling