Fixed bug about closing a closed PeerConnection object

According to the spec it throws an InvalidStateError instead of a NOP

Change-Id: I0239d40a75638b1a3bd999a449647ba6ad506892