Fix invalid requirements format
Fix handling of sigterm by setting loop flag correctly
Turn into a well-behaved daemon