5.17.0 - Fix the exit code in some scenario

Before running automation against chrome will always return the exit code of 0