main ipc_activity: close and free handle on error

9 jobs for quit-fix-2 in 7 minutes and 35 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #74189
amd64 linux docker
build:linux:amd64

00:05:18

passed #40962
docker linux amd64
build:linux:amd64

00:00:26

failed #73326
amd64 linux docker
build:linux:amd64

00:04:18

canceled #73008
amd64 linux docker
build:linux:amd64

canceled #73173
amd64 linux docker
build:linux:amd64

 
  Test
canceled #73257
amd64 linux docker
deckard:linux:amd64

passed #40965
docker linux amd64
respdiff:linux:amd64

00:02:16

passed #40963
docker linux amd64
test:linux:amd64

00:00:23

passed #40964
docker linux amd64
deckard:linux:amd64

00:03:02