a n improved error-handling in actors