Reset crontab and added print stack trace in the log.