Added close() call - needed for MW 1.23