I also found out how to avoid the line 55 error when the program is reopened. When you close the terminal window ruby's process is still running so the ports are still occupied by it. So, to fix the error we have to close ruby properly. Here's how.
Open terminal and type "top"
Locate ruby on the list and write down/copy it's PID
On another terminal window type "sudo kill rubyPID" where rubyPID is the PID you wrote down/copied previously
If you type "top" you will notice that ruby is disappeared
f*ckPSN will work again ;)
Update: Ok, I edited something that I shouldn't. For some reason my zip doesn't let the PS3 connect to the Internet. Going to fix it...
Update 2: Ok, fixed. Now it works properly: tested by me right now ;) Fixed version attached.
Everything works as planed, You are the man thanks :D