Fixed typo in errorhandler
StacksafequeueActor has memory leak, add try-catch to ensure the queue is emptied.