Added try/catch blocks inside the methods instead. If someone more
intelligent than me can check the catch-blocks it would be nice, I just
put something I think would do.