Properly shutting down cassandra to exit app