typo
Prevent fatal error, if channel has already closed connection
Added missing phpdoc
Calling close on closed connection cause the connection to reconnect so it can close the connection
Also ignore close on connection when it's already closed
Autoclose channel on destruct
Merge pull request #170 from fprochazka/patch-4

fixed fatal error and few typos