- (match (apply (hash-table-ref actor-table id) (cons address message))
- ('done (hash-table-delete! actor-table id))
- ('sleep 'do-nothing)
- (new-beh (hash-table-set! actor-table id new-beh)))))))
+ (condition-case
+ (match (apply behaviour (cons address message))
+ ('done (hash-table-delete! actor-table id))
+ ('sleep 'do-nothing)
+ (new-beh (hash-table-set! actor-table id new-beh)))
+ ((exn)
+ (print "## Warning: actor id " id " crashed evaluating message " message)))))))