Remove extra returns and generally clean up some debug messages.
Turn startup and shutdown messages into log_notices.