Bumped Scala version and fixed bug when closing an outputstream.