Fixed unhandled exceptions in cronjob + fixed grades.json path