Added captureStackTrace existence check
1.1.2