Update mapclip.py

Deleted im.close. Re-jiggered error check structure.