Catch errors, don't crash app