Fixed #753: Request is not properly unlocked if an exception occurs
merge 80c4947018e8c804ae94ff89bfd34edd9e090be2