Parameterise the port used in the socketio demo

(and change #destroy to #close)