Test API close operation
Add close method to MockDatagramSocket