Wrapped abort() call in try/catch to prevent json parsing error for existing connections.