Error Handling

Meerendeels error handling.