generalized cleanup function, in case modules want to use
removed return code as it doesn't make sense anymore
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
Merge pull request #2842 from bcoca/cleanup

generalized cleanup and removed atomic_move return