Error managment when launching app