The slave module

The UpdateHandler class

The CancelHandler class

The RebootHandler class

The main function