release semaphore if exception occurs
Merge pull request #2 from a8t3r/master

semaphore releasing if exception occurs