Fixing project stuff before sleep