Atmosphere/atmosphere — pull request #618 by markathomas (2012-09-13 20:13:15+00:00)
Title: Window close events randomly failing

Fix problem where window close events were not being processed if request was canceled or out of scope. When this happens the line
String mode = resource.getRequest().getParameter(Constants.CLIENT_SERIALZE_MODE_PARAMETER);
throws an error. Even is resource is unusable we still need to process the data; otherwise, we may ignore important events (e.g. window close)