Browser: Improved error handling

[Issue #50]