Fixed processing and passing of exceptions

Now exceptions from server methods are passed with stack trace to the client.

Please review.
```method``` instead of ```f```?