Added support for providing Hazelcast instance, added shutdown

This provides a fix for #9 and also adds `shutdown`, which is very convenient for running isolated tests.