server: set is_running attribute as early as possible

Since it is used in __del__, we should make sure that the attribute is
set as early as possible in case of exception in the constructor.