Fixing deprecation, closing contract window after printing.