updates custom close code
bumped version to 0.3.8