Handle client errors
Cleanup
Corrected logging