check if an InputDevice was opened before attempting to close it
check if an InputDevice was opened before attempting to close it

ProfessorKaos64/python-evdev,ProfessorKaos64/python-evdev,gvalkov/python-evdev,ProfessorKaos64/python-evdev,gcd0318/python-evdev,gcd0318/python-evdev,gcd0318/python-evdev,gvalkov/python-evdev