Required for dynamic inputs (like bluetooth). Files are now opened with O_NONBLOCK, and inputs are automatically removed on poll errors. Also added call to close all devices on power off. Change-Id: I8991bdb881fdc00135d1fd5b01ac900c0b007aeb