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