Added code to clean up after mimosa call