import os to make keys.dat detection work on OSX
fix socket reuse and add graceful shutdown for POP3
changed prints to logging calls and stop listen while connected
Merge pull request #6 from stuffo/master

fix socket reuse and add graceful shutdown for POP3