Catch some errors, turn off debugging