SERVER-11204 Catch c++ exceptions in JSThread