shutdown with cleanup script