fix(qe): make sure we always drop the server future (#5444)
Make sure we always exit with unwinding the stack and running the
destructors. This is important to make sure we close the database
connections and not leave them open until they time out.
- Handle SIGINT and SIGTERM signals.
- Don't force exit in the panic hook before unwinding.
See
https://prisma-company.slack.com/archives/C058VM009HT/p1748447180998219
Closes:
https://linear.app/prisma-company/issue/ORM-1014/handle-sigterm-in-query-engine-binary-to-properly-close-connections