Logs on, mines as defined in arguments, then logs off after a period of no block found.