fix shutdown handling
optimize dao routines
optimize unix signal handling, fix #36 (unix userid handling)