Sometime when the tested page throws unexpected error "not a code or javascript error", such as 500 or not enough memory, the script won't terminate and waits for up to 7200 seconds, which is the allowed session time giving by browserStack, then it times out.
I would like to know if I can force my scripts to terminate (or consider it as a failure) whenever it encounters such a behavior instead of waiting that long.