wrap phantom.exit into setTimeout to make it async

see: http://stackoverflow.com/a/26688062/781662

Fixes Error: "Unsafe JavaScript attempt to access frame with URL  from frame with URL file://... Domains, protocols and ports must match."