wrap phantom.exit calls in a timeout - work around linux issue when exiting phantom