changed curl behaviour to make it closeable after use
 - changed default values for file stream & curl connection