FAIMS-245: fixing bug where finally block is not called in services and client which cleans up temp files