Merge pull request #4 from native2k/master

Error handling
+ fixed missing put_new() for PBC transport
+ fixed put_new(), adopt to different interface
fixed returnOrRaiseException()