cleanup and pause in check