onClose() wasn't fired in close() method if stream was already closed.

Fixed by calling eventHandler.onClose() even if closeStreams() throws an exception.