bug fix: releasing permit channel if input file preparation fails
Merge pull request #155 from wtangiit/master

bug fix: releasing permit channel if input file preparation fails