catch exceptions during flush for web responses
Merge pull request #54 from ddeboer/catch-exception

catch exceptions during flush for web responses