I added forEach to 'shutdown'-function (in fact renamed it too to 'kill'). But I decided to keep this as it is as forEach lacks proper 'break'-possibilities. Though, I refactored this and "runOnSandCastle'-function a bit, so there is now less direct indexing to sandcastles-array.