LM_X should not be used, but the 'exit callback' that I believe was implemented not too long ago