Error handling

I found it is more convenient to generate Error and giving change to standard ErrorHandler to handle it (may be it needs to be passed as JSON or nice HTML shown)