Correctly close the console when no logger necessary (prevent double inputs) (fixes #25).