always close file handles in gpio_*
Merge pull request #2 from mokele/gpio_close_file_handles

always close file handles in gpio_*