fixed signal handler; fixed logger security issues; fixed memory leaks