pid file management wasn't quite right and needed some logging.