Fixed a problem before it occured: connection detect only when no alarm is fired