Fixes #9 dont write to file on success if not specified