Fix simmetrix initialization/cleanup