Fix Refine init scripts to both start and stop correctly and log to file