Exit headless client if not input-device connected. Closes #117.