flush stdin before finish method called to prevent user from missing final output from module and poet.rb