Modify connection timeout

1. raise error on connection timeout
2. use IOStream.close() instead of socket.close()
3. add set_close_callback() method in APNsConnection

	modified:   apns.py