Improved the error handling (instant exit), finished the private messaging