Fix close internal socket by removing parameters

Fix https://github.com/binaryjs/binaryjs/issues/45