Fix bug cleaning up named pipes