not capturing stackTrace if Error.captureStackTrace not exists