Oops

Added close operation so program doesn't run in background and use all
the computer's RAM