small changes, added few try catch blocks, changed scheduled task to run
every 60 seconds