Added error_info for maintenance mode errors
Be more restrictive when including a JSON stack
Remove unused handle_restart_req