Clean dead code
Add a proxy to work as context manager
Move spawn function to a static method
Test process spawning and closing