KCMSCMonClose()performs any cleaning necessary (for example, unlocking the serial port) for the module code.