Call application.close() appropriately

- Since the RedisTestSupport's cleanupResources() would
destroy the Redis connection factory, closing the application
at the cleanup() help destroying all the bindings' endpoints
before the connection factory is destroyed.