HeartbeatHandler: Remove unnecessary call to write().
Merge pull request #3 from sprockets/make-tornado-3-compat

Fix error handling