Add return code if the end unscheduled maintenance was successful (closes #595)