Fix error message handling
Use timeout for receive
Ignore timeout when waiting for error message
Use active socket for connection with Apple server
Fix by @chrzaszcz
Update jsx