#110 replace PreserveStackTrace method implementation