STOMP: prevent exception when close is called.