Close modal on device selector change.