socket_shutdown should stop read and write

As we are closing this connection on the next line, socket_shutdown should stop reading and writing. Removed additional parameter to reflect default PHP behaviour.