Fix for orphan processes in psample

Added call to Pool.close() in psample to fix #407