What happens if a country leaves the NPT?

Forums

How quickly does it happen and what are the consequences?