Remotery: Fix a few error handling scenarios. Fixes #12.