Optimized when user disconnects from app