There is a change that should be done in order for this wrapper to work correctly: The terminate function should be changed to this one: 
There is a change that should be done in order for this wrapper to work correctly:
The terminate function should be changed to this one:
