Clean up http handling