make usage a little more useful
exit if no operation is specified
obtain exclusive pid lock to prevent concurrent use