erro on close )