Cleanup of console