Check optional environment variable if ws should be cleaned up or not.

Signed-off-by: Florin Hillebrand <florin.hillebrand@streamunlimited.com>