Added logging and fixed to stop properly.
Added util.
Acceptor redesigned.