Issue#161: Fix issue with modelsim double freeing single use callbacks. Some other small changes as a results of messages returned fro the sims