fix heater bug that resets it to 0 when server restarts
use fork/waitpid to restart the server when it crashes