Close db session on terminate
Kill child process on exit