Check if done without all the fs.exits calls