sane names for close fns, fix ordering of close fns for phantomjs runtime
always clean up regular browser-repl test