Added ignore file
Switch to .net 4.0 for mono compatibility in Ubuntu
Added threading exit logic