Improved signal handling little more. Handle sigterm.