Fix on start error where sftp and ssh aps were being initialised and then destroyed before being used