Fixing not closing persistence if persistence was created
Fixing tests and Redis persistence not closing gracefully.

Summary:
- Fixed a bunch of tests now the Mosca server closes its persistence.
- Made the Redis persistence client gracefully close.
Merge pull request #193 from robskillington/fix-persistence-not-closing

Fixing not closing persistence if persistence was created