Daemon stopped before pre-refresh hook

Hi, I recently created a pre-refresh hook to make a dump of a mongo database, but the dump fails because mongo service is down when the hook run according to logs

Failed: error connecting to db server: no reachable server

mongo is a daemon type simple, but see in logs below also caddy is stopped, am I missing something on the workflow for the hooks? I see with snap changes that the services are stopped after running the pre-refresh hook

thanks

Aug 06 13:08:54 ubuntu-s2 audit[4035]: SECCOMP auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4035 comm="mongodump" exe="/snap/rocketchat-server/1389/bin/mongodump" sig=0 arch=c000003e syscall=41 compat=0 ip=0x7fcb087d85a7 code=0x50000
Aug 06 13:08:54 ubuntu-s2 audit[4035]: SECCOMP auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4035 comm="mongodump" exe="/snap/rocketchat-server/1389/bin/mongodump" sig=0 arch=c000003e syscall=41 compat=0 ip=0x7fcb087d85a7 code=0x50000
Aug 06 13:08:55 ubuntu-s2 systemd[1]: Stopping Service for snap application rocketchat-server.rocketchat-caddy...
Aug 06 13:08:55 ubuntu-s2 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-caddy.
Aug 06 13:08:55 ubuntu-s2 systemd[1]: Stopping Service for snap application rocketchat-server.rocketchat-mongo...
Aug 06 13:08:55 ubuntu-s2 rocketchat-server.rocketchat-mongo[3493]: 2019-08-06T13:08:55.727+0000 I CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends