Exception handling to fmi mod