Fix AMD definition of mocha-cloud
ensure process does not exit before browser has been torn down on SL