Remove files correctly
Use pid for rwinput name