Bugfix: Don't crash in worker threads when server is stopped and object deleted