close #5: Clean shutdown of mongodb daemon and db connection

ref: https://github.com/olecom/supro/commit/c1fa92e9b957f8a0a0b32573582ae1c2f9010dd0

Signed-off-by: Oleg Verych <olecom@gmail.com>