add option to cleanup created resources (defaults to true) and improve logging