Can now read the actual logfile to close.
Can now toggle b/w close/open stubs. Also, can get pid thanks to stackoverflow.