Exception handling

Prevent from stopping calling functions if an error happened somewhere