Cleanup statementProc