Catch StreamClosedError in StaticFileHandler.

Closes #1208.
Handle closed connections in WebSocketHandler.

Closes #1174.
Add another ignore_bytes_warning call to log_test.

This fixes a failure apparently introduced by changes to warning
logic in python 3.4.2.