handle system signals, work