Juiste afhandeling van exceptions