Wrap Error.captureStackTrace
in a try
#4035
Merged
Error.captureStackTrace
in a try
#4035