Adding "with" statement to allow Ctrl + C and avoid "Address in use"
error.