added setsid() to properly detach from console