Prevent remote client closing without depending on platform fix.