Make sure to close my fds/GIOChannels
Fixed bug where output would always be null on some Linux systems