Some jshinted forgotten semicolon fixes, and added error passing to _checkSwapFile.