fix crash cowboy when socket close

here the log:
[error] Ranch listener boss_http_listener had connection 
process started with cowboy_protocol:start_link/4 at <0.283.0> exit with reason: {{case_clause,closed},[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]}