LEDGE-238: release semaphore ONLY when actually acquired
LEDGE-238: fixed counter inversion
LEDGE-238: provide error message when rejecting a request with a 503