Fixing handling of PPConnectionException in sample code