Ping on connect and throw APS2_FAILED_TO_CONNECT if something goes wrong.

Closes #7.