Add error handling here, like it's done here: https://github.com/tnc-ba/strongTNC/commit/f67eb13e9320ab1288aa6fe81d6a194b2abfb966