Step 8 (Optional): Clean up resources