Better fix for non-delivery of ssl_closed message in active once
Better fix for non-delivery of ssl_closed message in active once

This is taken from
https://github.com/erlang/otp/pull/1479#issuecomment-304667528 with
permission from Ingela Andin and improves commit 8abe16c22d.

RaimoNiskanen/otp,RoadRunnr/otp,dgud/otp,bernardd/otp,uabboli/otp,tuncer/otp,dgud/otp,vladdu/otp,bjorng/otp,mikpe/otp,aboroska/otp,rlipscombe/otp,erlang/otp,matwey/otp,g-andrade/otp,potatosalad/otp,getong/otp,potatosalad/otp,erlang/otp,tuncer/otp,bjorng/otp,potatosalad/otp,vinoski/otp,bernardd/otp,vinoski/otp,emacsmirror/erlang,kvakvs/otp,RoadRunnr/otp,RaimoNiskanen/otp,electricimp/otp,aboroska/otp,fenollp/otp,uabboli/otp,dumbbell/otp,falkevik/otp,jj1bdx/otp,vladdu/otp,fenollp/otp,saleyn/otp,isvilen/otp,potatosalad/otp,electricimp/otp,goertzenator/otp,aboroska/otp,falkevik/otp,jj1bdx/otp,g-andrade/otp,dgud/otp,RaimoNiskanen/otp,matwey/otp,g-andrade/otp,emacsmirror/erlang,isvilen/otp,erlang/otp,erlang/otp,legoscia/otp,kvakvs/otp,vladdu/otp,legoscia/otp,dgud/otp,electricimp/otp,emacsmirror/erlang,RoadRunnr/otp,lrascao/otp,uabboli/otp,potatosalad/otp,mikpe/otp,RaimoNiskanen/otp,bjorng/otp,goertzenator/otp,electricimp/otp,matwey/otp,ferd/otp,lrascao/otp,cobusc/otp,electricimp/otp,potatosalad/otp,falkevik/otp,getong/otp,g-andrade/otp,bjorng/otp,rlipscombe/otp,erlang/otp,legoscia/otp,g-andrade/otp,cobusc/otp,rlipscombe/otp,goertzenator/otp,RaimoNiskanen/otp,saleyn/otp,falkevik/otp,RaimoNiskanen/otp,legoscia/otp,falkevik/otp,rlipscombe/otp,isvilen/otp,jj1bdx/otp,electricimp/otp,tuncer/otp,matwey/otp,dgud/otp,bjorng/otp,uabboli/otp,jj1bdx/otp,bjorng/otp,aboroska/otp,goertzenator/otp,mikpe/otp,bernardd/otp,aboroska/otp,getong/otp,g-andrade/otp,erlang/otp,tuncer/otp,rlipscombe/otp,uabboli/otp,bsmr-erlang/otp,goertzenator/otp,bernardd/otp,jj1bdx/otp,dgud/otp,rlipscombe/otp,mikpe/otp,electricimp/otp,fenollp/otp,ferd/otp,vinoski/otp,bjorng/otp,jj1bdx/otp,aboroska/otp,ferd/otp,vinoski/otp,mikpe/otp,RaimoNiskanen/otp,bjorng/otp,uabboli/otp,uabboli/otp,vladdu/otp,dumbbell/otp,cobusc/otp,electricimp/otp,falkevik/otp,ferd/otp,lrascao/otp,RoadRunnr/otp,vinoski/otp,matwey/otp,vinoski/otp,RaimoNiskanen/otp,getong/otp,RoadRunnr/otp,saleyn/otp,legoscia/otp,ferd/otp,saleyn/otp,vinoski/otp,mikpe/otp,emacsmirror/erlang,fenollp/otp,goertzenator/otp,isvilen/otp,bsmr-erlang/otp,tuncer/otp,g-andrade/otp,RoadRunnr/otp,erlang/otp,fenollp/otp,bsmr-erlang/otp,vinoski/otp,legoscia/otp,cobusc/otp,getong/otp,kvakvs/otp,dumbbell/otp,ferd/otp,dumbbell/otp,bsmr-erlang/otp,erlang/otp,emacsmirror/erlang,isvilen/otp,fenollp/otp,getong/otp,getong/otp,erlang/otp,bsmr-erlang/otp,g-andrade/otp,jj1bdx/otp,mikpe/otp,lrascao/otp,isvilen/otp,legoscia/otp,dgud/otp,bsmr-erlang/otp,tuncer/otp,aboroska/otp,potatosalad/otp,bsmr-erlang/otp,vinoski/otp,cobusc/otp,fenollp/otp,saleyn/otp,bernardd/otp,emacsmirror/erlang,saleyn/otp,isvilen/otp,vladdu/otp,falkevik/otp,saleyn/otp,emacsmirror/erlang,fenollp/otp,tuncer/otp,cobusc/otp,rlipscombe/otp,kvakvs/otp,isvilen/otp,vladdu/otp,bjorng/otp,RaimoNiskanen/otp,kvakvs/otp,lrascao/otp,dumbbell/otp,lrascao/otp,emacsmirror/erlang,dumbbell/otp,ferd/otp,bjorng/otp,fenollp/otp,tuncer/otp,lrascao/otp,goertzenator/otp,matwey/otp,getong/otp,isvilen/otp,ferd/otp,jj1bdx/otp,dgud/otp,emacsmirror/erlang,potatosalad/otp,mikpe/otp,bernardd/otp,dumbbell/otp,saleyn/otp,ferd/otp,rlipscombe/otp,aboroska/otp,vladdu/otp,uabboli/otp,RoadRunnr/otp,cobusc/otp,mikpe/otp,vladdu/otp,RoadRunnr/otp,rlipscombe/otp,legoscia/otp,dgud/otp,bernardd/otp,lrascao/otp,matwey/otp,emacsmirror/erlang,bernardd/otp,getong/otp,dgud/otp,electricimp/otp,RoadRunnr/otp,falkevik/otp,dumbbell/otp,erlang/otp,goertzenator/otp,vinoski/otp,getong/otp,jj1bdx/otp,isvilen/otp,lrascao/otp,matwey/otp,g-andrade/otp,mikpe/otp,potatosalad/otp,saleyn/otp,aboroska/otp,vladdu/otp,kvakvs/otp,rlipscombe/otp,kvakvs/otp,falkevik/otp,bsmr-erlang/otp,jj1bdx/otp,g-andrade/otp,potatosalad/otp,bernardd/otp,kvakvs/otp,legoscia/otp,dumbbell/otp,dumbbell/otp,uabboli/otp,kvakvs/otp,bsmr-erlang/otp,cobusc/otp,matwey/otp,goertzenator/otp,tuncer/otp