fixed memory leak in alarms; fixed invalid memory access on server shutdown; updated...