a few improvements: added 3 time reconnecting mechanism, reduced buzzer beep duration to 0.5s, added RELEASE macro