Improved error handling

Errors are now properly handled and StackTraces are passed between Isolates using the 'stack_trace' library.