Additional error checking and logging for PHPTimestore