fixed change offline chat status on close