Changed apple_monitor to kill phantomjs after 20 seconds since phantomjs sometimes wedges.