[sr-dev] git:master:b8b6c915: janssonrpcc: close fd in case of error