your error is not related to crome or other browsers.
if you look at the PHP documentation http://php.net/manual/en/language.oop5.decon.php
The destructor method will be called as soon as there are no other references to a particular object, or in any order during the shutdown sequence.
a. If "exit" is called somewhere
C. FATAL error somewhere in code
C. If another destructor has an exception,
E. If you try to THROW an exception in the destructor
$this->_save() is a method, and it may throw an Exception anyway
So far register_shutdown_function http://php.net/manual/en/function.register-shutdown-function.php
Registers a callback to be executed after script execution finishes or exit is called
I would suggest that this would work the weather script ends correctly or not
source share