dsm: only close valid fds
dsm: only close valid fds

acfloria/Firmware,krbeverx/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,mcgill-robotics/Firmware,Aerotenna/Firmware,acfloria/Firmware,Aerotenna/Firmware,mcgill-robotics/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,jlecoeur/Firmware,dagar/Firmware,acfloria/Firmware,mje-nz/PX4-Firmware,krbeverx/Firmware,krbeverx/Firmware,Aerotenna/Firmware,mje-nz/PX4-Firmware,Aerotenna/Firmware,Aerotenna/Firmware,mje-nz/PX4-Firmware,dagar/Firmware,dagar/Firmware,acfloria/Firmware,mje-nz/PX4-Firmware,acfloria/Firmware,PX4/Firmware,PX4/Firmware,mcgill-robotics/Firmware,jlecoeur/Firmware,PX4/Firmware,mcgill-robotics/Firmware,Aerotenna/Firmware,mje-nz/PX4-Firmware,jlecoeur/Firmware,krbeverx/Firmware,krbeverx/Firmware,Aerotenna/Firmware,mje-nz/PX4-Firmware,acfloria/Firmware,dagar/Firmware,PX4/Firmware,mcgill-robotics/Firmware,PX4/Firmware,krbeverx/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,krbeverx/Firmware,jlecoeur/Firmware,dagar/Firmware,acfloria/Firmware,PX4/Firmware,mcgill-robotics/Firmware,dagar/Firmware,dagar/Firmware,mcgill-robotics/Firmware