devtools open and closing alerting