Fixed type and indent error. Also added a featue to prevent the program from terminating due to bad update check.